﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 战棋模拟器
{
    class 坎格尔的学徒:Minion
    {
        public 坎格尔的学徒():base()
        {
            count = 2;
            Star = 6;
            Attack = 3;
            Health = 6;
        }


        public override void Deathrattle()
        {
            int i = count;
            foreach(Minion m in pool.DeathList)
            {
                if(m.Race == race.mech||m.Race == race.all)
                {
                    i--;
                    pool.Spawn(pool, Place, m.NewOne());
                }
                if (i <= 0)
                    return;
            }
            base.Deathrattle();
        }


        public override Minion NewOne()
        {
            return new 坎格尔的学徒();
        }
    }


    class 坎格尔的学徒_金色 : 坎格尔的学徒
    {
        public 坎格尔的学徒_金色() : base()
        {
            Attack *= 2;
            Health *= 2;
            count *= 2;
            buff *= 2;
        }

        public override Minion NewOne()
        {
            return new 坎格尔的学徒_金色();
        }
    }
}
